﻿<Window x:Class="Window2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Color" Height="247" Width="507">
    <Window.Resources>
        <LinearGradientBrush x:Key="Brush1" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFFFFFFF" Offset="0"/>
            <GradientStop Color="#FF8DCEF4" Offset="0.9"/>
        </LinearGradientBrush>
    </Window.Resources>
    <Grid Height="199">
        <Label Height="23" HorizontalAlignment="Left" Margin="8,13,0,0" Name="Label1" VerticalAlignment="Top" Width="74">First color</Label>
        <Button Background="{DynamicResource Brush1}" Height="22" HorizontalAlignment="Left" Margin="123,14,0,0" Name="Button1" VerticalAlignment="Top" Width="111">Select</Button>
        <Label HorizontalAlignment="Left" Margin="8,46,0,0" Name="Label2" Width="96" Height="25" VerticalAlignment="Top">Second color</Label>
        <Button Background="{DynamicResource Brush1}" HorizontalAlignment="Left" Margin="123,46,0,0" Name="Button2" Width="111" Height="23" VerticalAlignment="Top">Select</Button>
        <Slider Height="24" Margin="123,77,0,0" Name="Slider1" VerticalAlignment="Top" HorizontalAlignment="Left" Width="280" Minimum="10" Maximum="100" />
        <Label Height="24" HorizontalAlignment="Left" Margin="16,77,0,0" Name="Label3" VerticalAlignment="Top" Width="88">Offset</Label>
        <Rectangle Height="26" Margin="40,107,82,0" Name="Rectangle1" Stroke="Black" VerticalAlignment="Top" />
        <Button Background="{DynamicResource Brush1}" Height="27" HorizontalAlignment="Left" Margin="68,0,0,18" Name="Button3" VerticalAlignment="Bottom" Width="95">Ok</Button>
        <Button Background="{DynamicResource Brush1}" Height="27" HorizontalAlignment="Right" Margin="0,0,135,18" Name="Button4" VerticalAlignment="Bottom" Width="95">Cancel</Button>
    </Grid>
</Window>
